﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace QYmall.Core.Model.ViewModels
{
    /// <summary>
    /// 商品扩展属性(显示)
    /// </summary>
    public class ShopGoodsFieldValueDto
    {
        /// <summary>
        /// 自增ID
        /// </summary>
        [Display(Name = "自增ID")]
        public long Id { get; set; }

        /// <summary>
        /// 所属商品ID
        /// </summary>
        [Display(Name = "所属商品")]
        public long GoodsId { get; set; }

        /// <summary>
        /// 扩展属性ID
        /// </summary>
        [Display(Name = "扩展属性")]
        public int OptionId { get; set; }

        /// <summary>
        /// 选项名
        /// </summary>
        [Display(Name = "选项名")]
        [StringLength(128)]
        public string? OptionName { get; set; }

        /// <summary>
        /// 选项值
        /// </summary>
        [Display(Name = "选项值")]
        [StringLength(512)]
        public string? OptionValue { get; set; }
    }
}
